package com.zeng.sim.controller;

import com.zeng.sim.controller.domain.response.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * 描述信息
 *
 * @author zengwanlin
 * @date 2023-12-21T16:13
 */
@RestControllerAdvice(basePackageClasses = LoginController.class)
public class GlobalExceptionController {

    @ExceptionHandler
    public Result exp(Exception e) {
        return Result.failure(e.getMessage());
    }

}
